<%@page import="com.chauncy.DMS.bean.StuDormInfoBean"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
						List<StuDormInfoBean> sdibList =  (List)session.getAttribute("roommateInfoList");
						//System.out.print(sdibList.get(0).getStu_name());
						//System.out.print(sdibList.get(1).getStu_name());
					 %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
 <head>
		<meta charset="UTF-8">
		<title>宿舍信息</title>
		<link rel="stylesheet" href="../layui/css/layui.css" />
		
		<script type="text/javascript" src="../layui/layui.js" ></script>
	</head>
	
	<body>
		<div class="layui-container">
			<div class="layui-header">
				<fieldset class="layui-elem-field layui-field-title">
					<legend>宿舍成员(大学室友三年，室友联系方式都没有怎行)</legend>
				</fieldset>
				<div class="layui-collapse">
				<%if(sdibList.size() > 0){%>
					<%for(StuDormInfoBean sdib : sdibList){%>
						<div class="layui-colla-item">
						<h2 class="layui-colla-title"><%=sdib.getStu_name() %></h2>
						<div class="layui-colla-content">
							<table class="layui-table" lay-size="md">
								<colgroup>
									<col width="10%" >
									<col width="10%" >
									<col width="10%" >
									<col >
								</colgroup>
								<thead>
									<tr>
										<th>所在学院</th>
										<th>专业/班级</th>
										<th>联系电话</th>
									</tr>
								</thead>
								<tbody>
									<tr>
										<td><%=sdib.getCollege() %></td>
										<td><%=sdib.getStudy_major()+sdib.getThe_class() %></td>
										<td><%=sdib.getTelephone() %></td>
									</tr>
								</tbody>
							</table>
						</div>
					</div>
				 <%} %>
				 
			<%	}else{ %>
				
				
						
						
					<div class="layui-colla-item">
						<h2 class="layui-colla-title">Chauncy1</h2>
						<div class="layui-colla-content">
							<table class="layui-table" lay-size="md">
								<colgroup>
									<col width="10%" >
									<col width="10%" >
									<col width="10%" >
									<col >
								</colgroup>
								<thead>
									<tr>
										<th>出生日期</th>
										<th>联系电话</th>
										<th>QQ</th>
										<th>WeChat</th>
									</tr>
								</thead>
								<tbody>
									<tr>
										<td>1998/3/18</td>
										<td>18374770000</td>
										<td>1097172000</td>
										<td>18374770000</td>
									</tr>
								</tbody>
							</table>
						</div>
					</div>
					
					<div class="layui-colla-item">
						<h2 class="layui-colla-title">Chauncy2</h2>
						<div class="layui-colla-content">
							<table class="layui-table" lay-size="md">
								<colgroup>
									<col width="10%" >
									<col width="10%" >
									<col width="10%" >
									<col >
								</colgroup>
								<thead>
									<tr>
										<th>出生日期</th>
										<th>联系电话</th>
										<th>QQ</th>
										<th>WeChat</th>
									</tr>
								</thead>
								<tbody>
									<tr>
										<td>1998/3/18</td>
										<td>18374770000</td>
										<td>1097172000</td>
										<td>18374770000</td>
									</tr>
								</tbody>
							</table>
						</div>
					</div>
					
					
					<div class="layui-colla-item">
						<h2 class="layui-colla-title">Chauncy3</h2>
						<div class="layui-colla-content">
							<table class="layui-table" lay-size="md">
								<colgroup>
									<col width="10%" >
									<col width="10%" >
									<col width="10%" >
									<col >
								</colgroup>
								<thead>
									<tr>
										<th>出生日期</th>
										<th>联系电话</th>
										<th>QQ</th>
										<th>WeChat</th>
									</tr>
								</thead>
								<tbody>
									<tr>
										<td>1998/3/18</td>
										<td>18374770000</td>
										<td>1097172000</td>
										<td>18374770000</td>
									</tr>
								</tbody>
							</table>
						</div>
					</div>
					
					
					<div class="layui-colla-item">
						<h2 class="layui-colla-title">Chauncy4</h2>
						<div class="layui-colla-content">
							<table class="layui-table" lay-size="md">
								<colgroup>
									<col width="10%" >
									<col width="10%" >
									<col width="10%" >
									<col >
								</colgroup>
								<thead>
									<tr>
										<th>出生日期</th>
										<th>联系电话</th>
										<th>QQ</th>
										<th>WeChat</th>
									</tr>
								</thead>
								<tbody>
									<tr>
										<td>1998/3/18</td>
										<td>18374770000</td>
										<td>1097172000</td>
										<td>18374770000</td>
									</tr>
								</tbody>
							</table>
						</div>
					</div>
					
					
					<div class="layui-colla-item">
						<h2 class="layui-colla-title">Chauncy5</h2>
						<div class="layui-colla-content">
							<table class="layui-table" lay-size="md">
								<colgroup>
									<col width="10%" >
									<col width="10%" >
									<col width="10%" >
									<col >
								</colgroup>
								<thead>
									<tr>
										<th>出生日期</th>
										<th>联系电话</th>
										<th>QQ</th>
										<th>WeChat</th>
									</tr>
								</thead>
								<tbody>
									<tr>
										<td>1998/3/18</td>
										<td>18374770000</td>
										<td>1097172000</td>
										<td>18374770000</td>
									</tr>
								</tbody>
							</table>
						</div>
					</div>
					
					
					<div class="layui-colla-item">
						<h2 class="layui-colla-title">Chauncy6</h2>
						<div class="layui-colla-content">
							<table class="layui-table" lay-size="md">
								<colgroup>
									<col width="10%" >
									<col width="10%" >
									<col width="10%" >
									<col >
								</colgroup>
								<thead>
									<tr>
										<th>出生日期</th>
										<th>联系电话</th>
										<th>QQ</th>
										<th>WeChat</th>
									</tr>
								</thead>
								<tbody>
									<tr>
										<td>1998/3/18</td>
										<td>18374770000</td>
										<td>1097172000</td>
										<td>18374770000</td>
									</tr>
								</tbody>
							</table>
						</div>
					</div>
					
					
					<div class="layui-colla-item">
						<h2 class="layui-colla-title">Chauncy7</h2>
						<div class="layui-colla-content">
							<table class="layui-table" lay-size="md">
								<colgroup>
									<col width="10%" >
									<col width="10%" >
									<col width="10%" >
									<col >
								</colgroup>
								<thead>
									<tr>
										<th>出生日期</th>
										<th>联系电话</th>
										<th>QQ</th>
										<th>WeChat</th>
									</tr>
								</thead>
								<tbody>
									<tr>
										<td>1998/3/18</td>
										<td>18374770000</td>
										<td>1097172000</td>
										<td>18374770000</td>
									</tr>
								</tbody>
							</table>
						</div>
					</div>
					<%} %>
				</div>
			</div>
		</div>
		<script type="text/javascript">
			layui.use(['table','element'],function(){
				var table = layui.table,
				element = layui.element;
			});
		</script>
	</body>
	
</html>
